import { defineStore } from "pinia"
export const useLanguage = defineStore('language', {
    state: () => {
        return {
            language: 'zh'
        }
    },
    actions: {
        setLanguage(locals: string) {
            this.language = locals
        }
    },
    persist: [
        {
            path: ['language'],
            storage: localStorage
        }
    ]
})